import Axios, { downLoadFile } from '@/utils/request';
import { AccessControlDTO, AuthCheckDTO, AuthCheckVO } from '../vo/auth-manage';

export default class API {
    /**
     * 用户复核列表
     * @returns
     */
    static authCheckList(data: AuthCheckDTO): Promise<AuthCheckVO> {
        return Axios.post('/userManage/check/query', data);
    }

    /**
     * 复核通过
     * @returns
     */
    static checkPass(data: { userCode: string; serialNo: string; checkReason: string }[]): Promise<any> {
        return Axios.post('/userManage/check/allow', data);
    }

    /**
     * 复核拒绝
     * @returns
     */
    static checkRefuse(data: { userCode: string; serialNo: string; checkReason: string }[]): Promise<any> {
        return Axios.post('/userManage/check/refuse', data);
    }

    /**
     * 查询用户信息修改记录列表
     * @returns
     */
    static userManageUpdateRecordList(data: any): Promise<any> {
        return Axios.post('/userManage/update/record', data);
    }

    /**
     * 获取复核比对差异
     * @returns
     */
    static compare(data: any): Promise<any> {
        return Axios.post('/userManage/check/compare', data);
    }

    /**
     * 访问控制编辑
     * @returns
     */
    static updateAccessControl(data: any): Promise<any> {
        // return Axios.post('/userManage/updateUser/user', data);
        return Axios.post('/userManage/user/update/accessControl', data);
    }

    /**
     * 新增用户下拉框 TODO
     * @returns
     */
    static importCustomerUserList(data: any): Promise<any> {
        return Axios.post('/userManage/import/customerUsers', data);
    }

    /**
     * 修改用户基金权限
     * @returns
     */
    static userUpdateFund(data: any): Promise<any> {
        return Axios.post('/userManage/user/update/fund', data);
    }
}
